using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Lever_Floor_Controller : MonoBehaviour
{
    public GameObject door;
    
    public void HitLever()
    {
        GetComponent<Animator>().SetTrigger("Open");
        if (door != null)
        {
            door.transform.Rotate(0, -60, 0);
            door.GetComponent<BoxCollider2D>().isTrigger = true;
            Destroy(gameObject, 2);
        }
    }
}
